// // 导入koa-router模块
const Router = require('koa-router');
// 创建koa-router的实例router
const router = new Router({
    prefix: '/api'
});
const wallpaperControllers = require('../controllers/wallpaper');

// 定义模型 可以公用 schema $ref
/**
 * @swagger
 * /wallpaper:
 *   get:
 *     description: 获取壁纸列表
 *     tags: [壁纸模块]
 *     summary: 获取壁纸列表
 *     produces:
 *       - application/json
 *     parameters:
 *       - name: id
 *         description: id.
 *         in: query
 *         required: false
 *       - name: size
 *         description: 页码数.
 *         in: query
 *         required: false
 *       - name: page
 *         description: 分页.
 *         in: query
 *         required: false
 *     responses:
 *       200:
 *         description: 操作成功
 *
 */
 router.get('/wallpaper', wallpaperControllers.getData)

module.exports = router;